function reactLModFn(data) {
    let textStr = ""
    let text = data.text ? data.text : "";
    let typeStr = "";
    let type = data.type;
    let styleStr = ""
    if (type == "tab") {
        styleStr = `background-color:#2f89d6;`
    } else if (type == "api") {
        styleStr = `background-color:#52C41A;`
    } else {
        styleStr = `background-color:#c4b0e5;`
    }


    textStr = `<div class="reactLBody">
        <div div class = "reactLMod"  data-title='标题栏' style='${styleStr}'>
          <div  class = "reactLTitleDiv" title = "${text}" >
            <span>${text}</span>
          </div>
        </div>
      </div>`

    return textStr
}

export default reactLModFn